<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/7
 * Time: 17:12
 */

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Database\Eloquent\Collection;

class PackageStoreResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'store_id' => $this->id,
            'store_title' => $this->title,
            'address' => $this->pic,
            'longitude' => $this->brand_id,
            'latitude' => $this->brand_title,
            'phone' => $this->brand_pic,
            'pics' => $this->pics
        ];
    }
}